<div id="menu">
        <ul id="mainmenu">
            <li><a href="site/index/" class="drop">Home</a>
                <div class="dropdown_2columns"><!-- Begin 2 columns container -->
                    
                    <div class="col_2">
                        <h2>Welcome!</h2>
                    </div>
                    <div class="col_2">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam semper ultricies augue at commodo. Phasellus dictum sagittis ultricies. Phasellus at diam enim. Nulla ac mauris enim, a vulputate elit. Morbi dignissim ultrices vestibulum. Etiam fringilla mauris in nisi tincidunt malesuada. In id quam justo.</p>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam semper ultricies augue at commodo. Phasellus dictum sagittis ultricies. Phasellus at diam enim. Nulla ac mauris enim, a vulputate elit. Morbi dignissim ultrices vestibulum. Etiam fringilla mauris in nisi tincidunt malesuada. In id quam justo.</p>
                    </div>
                    <div class="col_2">
                        <h2>Awesome Crossbrowsing!</h2>
                    </div>
                    <div class="col_1">
                        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/test.png" width="125" height="48" alt="" />
                    </div>
                    <div class="col_1">
                        <p>This is mega menu, boooooooya mother f*cker!</p>
                    </div>

                </div><!-- End 2 columns container -->
            </li>
            <?php if (Yii::app()->user->isGuest){ ?>
            <li class="menu_right"><a href="#" class="drop">Login</a><!-- Begin Login item -->
                <div class="dropdown_3columns align_right"><!-- Begin 3 columns of Login container -->
                    <!-- Login -->
                    <div class="col_3">
                        <h2>Login</h2>
                    </div>
                    <?php $form=$this->beginWidget('CActiveForm',array(
                        'action'=>'/site/login',
                        'htmlOptions'=>array('enctype'=>"multipart/form-data",'method'=>'post',),
                        'id'=>'login-form',
                        'enableAjaxValidation'=>true,
                    )); ?>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($model,'username'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->textField($model,'username'); ?></p>
                        <p><?php echo $form->error($model,'username'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($model,'password'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->passwordField($model,'password'); ?></p>
                        <p><?php echo $form->error($model,'password'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo $form->label($model,'rememberMe'); ?></p>
                        <p><?php echo $form->error($model,'rememberMe'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->checkBox($model,'rememberMe'); ?></p>
                    </div>
                    <div class="col_3">
                        <p><?php echo CHtml::submitButton('Login'); ?></p>
                        <?php $this->endWidget(); ?>
                    </div>
               </div>
            </li>
            <li class="menu_right"><a href="#" class="drop">Registration</a><!-- Begin Registration item -->
                <div class="dropdown_3columns align_right"><!-- Begin 3 columns of Registration container -->
                    <!-- Registration -->
                    <div class="col_3">
                        <h2>Registration</h2>
                    </div>
                    <?php $form=$this->beginWidget('CActiveForm',array(
                        'action'=>'site/registration',
                        'htmlOptions'=>array('enctype'=>"multipart/form-data",'method'=>'post',),
                        'id'=>'login-form',
                        'enableAjaxValidation'=>true,
                    )); ?>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($reguser,'Username'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->textField($reguser,'username'); ?></p>
                        <p><?php echo $form->error($reguser,'username'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($reguser,'E-mail'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->textField($reguser,'email'); ?></p>
                        <p><?php echo $form->error($reguser,'email'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($reguser,'Password'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->passwordField($reguser,'password');?></p>
                        <p><?php echo $form->error($reguser,'password'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo $form->labelEx($reguser,'Password'); ?></p>
                    </div>
                    <div class="col_2">
                        <p><?php echo $form->passwordField($reguser,'password1');?></p>
                        <p><?php echo $form->error($reguser,'password1'); ?></p>
                    </div>
                    <div class="col_1">
                        <p><?php echo CHtml::submitButton('tratata',array('class'=>'Ok')); ?></p>
                    </div>

                </div><!-- End 3 columns container -->
                <?php $this->endWidget(); ?>
                </div>
            </li>
            <?php }
            else{
                echo '<li class="menu_right"><a href="/site/logout" class="notdrop">'.Yii::app()->user->name.' (Logout)</a></li><!-- Link to user logout  -->';
            }
            // Display some short user statistic's for open task's or something statistic's else
            ?>
            
        </ul>
    </div><!-- menu -->